<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
<title>Players</title>
<link href="./resources/css/showPlayers.css" rel="stylesheet" type="text/css" media="screen" />

</head>
<body>
<div class="automargin">
<p><a href="./ratingTool">Rating Tool</a></p>
<table border="1">
<tr>
<th>Id</th>
<th>Name</th>
<th>Skill</th>
<th>Rating</th>
<th>PlacementLeft</th>
<th>GamesPlayed</th>
<th>Wins</th>
<th>lastRatingChange</th>
<th>winsInARow</th>
</tr>
<c:forEach items="${players}" var="player">
<tr>
<td>${player.id}</td>
<td>${player.name}</td>
<td>${player.skill}</td>
<td>${player.rating}</td>
<td>${player.placementLeft}</td>
<td>${player.gamesPlayed}</td>
<td>${player.wins}</td>
<td>${player.lastRatingChange}</td>
<td>${player.winsInARow}</td>
</tr>
</c:forEach>
</table>
</div>
</body>
</html>